<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <title>换色表格</title>
    <style>
        #Y{background-color: yellow;}
        #R{background-color: red;}
        #G{background-color: aquamarine;}
        caption{padding-top: 10px;height: 20px;}
    </style>
</head>
<body style="margin:0 auto ; width: 800px;">
    <table width="800px" height="60px" border="1px">
        <caption><b>热点新闻排行</b></caption>
        <tbody>
            <tr>
                <th id="G">新闻名称</th>
            </tr>
            <tr>
                <th id="R">今天我考完啦</th>
            </tr>
            <tr>
                <th  id="Y">今天我考完啦</th>
            </tr>
            <tr>
                <th id="R">今天我考完啦</th>
            </tr>
            <tr>
                <th id="Y">今天我考完啦</th>
            </tr>
            <tr>
                <th id="R">今天我考完啦</th>
            </tr>
        </tbody>
    </table>
</body>
</html>